import 'package:flutter/material.dart';
import 'package:flutter_screenutil/screenutil.dart';

class ActionList extends StatelessWidget {
  const ActionList({Key? key}) : super(key: key);

  //列表的item
  Widget _myListTile(String title) {
    return Container(
      decoration: const BoxDecoration(
          color: Colors.white,
          border: Border(bottom: BorderSide(width: 1, color: Colors.black12))),
      child: ListTile(
        leading: const Icon(Icons.blur_circular),
        title: Text(title),
        trailing: const Icon(Icons.arrow_right),
      ),
    );
  }

  Widget _actionList() {
    return Container(
      margin: const EdgeInsets.only(top: 10.0),
      child: Column(
        children: [
          _myListTile('领取优惠券'),
          _myListTile('已领取优惠券'),
          _myListTile('地址管理'),
          _myListTile('客服电话'),
          _myListTile('关于我们'),
        ],
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return _actionList();
  }
}
